
TESTS = LibTorrentTest
check_PROGRAMS = $(TESTS)
LibTorrentTest_LDADD = \
	../src/libtorrent.la \
	../src/torrent/libsub_torrent.la \
	../src/torrent/data/libsub_torrentdata.la \
	../src/torrent/download/libsub_torrentdownload.la \
	../src/torrent/peer/libsub_torrentpeer.la \
	../src/data/libsub_data.la \
	../src/dht/libsub_dht.la \
	../src/download/libsub_download.la \
	../src/net/libsub_net.la \
	../src/protocol/libsub_protocol.la \
	../src/tracker/libsub_tracker.la \
	../src/utils/libsub_utils.la \
	../src/torrent/utils/libsub_torrentutils.la

LibTorrentTest_SOURCES = \
	../src/thread_disk.cc \
	../src/thread_disk.h \
	\
	rak/allocators_test.cc \
	rak/allocators_test.h \
	rak/ranges_test.cc \
	rak/ranges_test.h \
	data/chunk_list_test.cc \
	data/chunk_list_test.h \
	data/hash_check_queue_test.cc \
	data/hash_check_queue_test.h \
	data/hash_queue_test.cc \
	data/hash_queue_test.h \
	torrent/http_test.cc \
	torrent/http_test.h \
	torrent/object_test.cc \
	torrent/object_test.h \
	torrent/object_test_utils.cc \
	torrent/object_test_utils.h \
	torrent/object_static_map_test.cc \
	torrent/object_static_map_test.h \
	torrent/object_stream_test.cc \
	torrent/object_stream_test.h \
	torrent/tracker_controller_test.cc \
	torrent/tracker_controller_test.h \
	torrent/tracker_controller_features.cc \
	torrent/tracker_controller_features.h \
	torrent/tracker_controller_requesting.cc \
	torrent/tracker_controller_requesting.h \
	torrent/tracker_list_test.cc \
	torrent/tracker_list_test.h \
	torrent/tracker_list_features_test.cc \
	torrent/tracker_list_features_test.h \
	torrent/tracker_timeout_test.cc \
	torrent/tracker_timeout_test.h \
	torrent/utils/extents_test.cc \
	torrent/utils/extents_test.h \
	torrent/utils/log_test.cc \
	torrent/utils/log_test.h \
	torrent/utils/log_buffer_test.cc \
	torrent/utils/log_buffer_test.h \
	torrent/utils/net_test.cc \
	torrent/utils/net_test.h \
	torrent/utils/option_strings_test.cc \
	torrent/utils/option_strings_test.h \
	torrent/utils/signal_bitfield_test.cc \
	torrent/utils/signal_bitfield_test.h \
	torrent/utils/thread_base_test.cc \
	torrent/utils/thread_base_test.h \
	tracker/tracker_http_test.cc \
	tracker/tracker_http_test.h \
	main.cc

LibTorrentTest_CXXFLAGS = $(CPPUNIT_CFLAGS)
LibTorrentTest_LDFLAGS = $(CPPUNIT_LIBS)  -ldl

INCLUDES = -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/src
